// does this really have to be a .m file, or would a .c file do?

#import "DisplayIDHelper.h"

// convenience functions to make an NSString key from a CGDirectDisplayID.
NSString *
convertDisplayIDToString(CGDirectDisplayID displayID) {
	NSNumber *displayIDAsNumber = [NSNumber numberWithInt:(int) displayID];
	NSString *displayIDAsString = [displayIDAsNumber stringValue];
	return displayIDAsString;
}

NSNumber *
convertDisplayIDToNumber(CGDirectDisplayID displayID) {
	NSNumber *displayIDAsNumber = [NSNumber numberWithInt:(int) displayID];
	return displayIDAsNumber;
}

CGDirectDisplayID
convertStringToDisplayID(NSString *displayIDAsString) {
	return [[NSNumber numberWithInt:[displayIDAsString intValue]] pointerValue];
}

CGDirectDisplayID
convertNumberToDisplayID(NSNumber *displayIDAsNumber) {
	return [displayIDAsNumber pointerValue];
}